package com.zhxy.manager.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class PageBean<T> {
    private int code;
    private String msg;
    private long count;
    private List<T> data;
    public static <T> PageBean bean(long count, List<T> list){
        return new PageBean(0,"OK",count,list);
    }
}
